Add proto for name_option. Battle MS's ongoing attempt to banish standard C
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 20 Feb 2006 20:04:21 +0000 (20:04 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 20 Feb 2006 20:04:21 +0000 (20:04 +0000)
from the earth.

gpsbabel/defs.h

index 76ca729ac10d3051587c160226f51f3a9c5cc2c1..cce4daba46f457c2622d5b59ae3d598d9716c337 100644 (file)
 #if __WIN32__
 #  define snprintf _snprintf
 #  define vsnprintf _vsnprintf
+#  define fileno _fileno
 #endif
 
 /* Turn off numeric conversion warning */
 #if __WIN32__
-#pragma warning(disable:4244)
+#  pragma warning(disable:4244)
+#  define _CRT_SECURE_NO_DEPRECATE 1
 #endif
 
 /* 
@@ -545,6 +547,7 @@ ff_vecs_t *find_vec(char * const, char **);
 void disp_vecs(void);
 void exit_vecs(void);
 void disp_formats(int version);
+const char * name_option(long type);
 void printposn(const double c, int is_lat);
 
 #ifndef DEBUG_MEM